package com.ruoyi.questionPushRecord.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.questionPushRecord.mapper.CircleQuestionPushRecordMapper;
import com.ruoyi.questionPushRecord.domain.CircleQuestionPushRecord;
import com.ruoyi.questionPushRecord.service.ICircleQuestionPushRecordService;

/**
 * 圈子题目推送记录Service业务层处理
 * 
 * @author 区嘉盛
 * @date 2025-06-26
 */
@Service
public class CircleQuestionPushRecordServiceImpl implements ICircleQuestionPushRecordService 
{
    @Autowired
    private CircleQuestionPushRecordMapper circleQuestionPushRecordMapper;

    /**
     * 查询圈子题目推送记录
     * 
     * @param id 圈子题目推送记录主键
     * @return 圈子题目推送记录
     */
    @Override
    public CircleQuestionPushRecord selectCircleQuestionPushRecordById(Long id)
    {
        return circleQuestionPushRecordMapper.selectCircleQuestionPushRecordById(id);
    }

    /**
     * 查询圈子题目推送记录列表
     * 
     * @param circleQuestionPushRecord 圈子题目推送记录
     * @return 圈子题目推送记录
     */
    @Override
    public List<CircleQuestionPushRecord> selectCircleQuestionPushRecordList(CircleQuestionPushRecord circleQuestionPushRecord)
    {
        return circleQuestionPushRecordMapper.selectCircleQuestionPushRecordList(circleQuestionPushRecord);
    }

    /**
     * 新增圈子题目推送记录
     * 
     * @param circleQuestionPushRecord 圈子题目推送记录
     * @return 结果
     */
    @Override
    public int insertCircleQuestionPushRecord(CircleQuestionPushRecord circleQuestionPushRecord)
    {
        return circleQuestionPushRecordMapper.insertCircleQuestionPushRecord(circleQuestionPushRecord);
    }

    /**
     * 修改圈子题目推送记录
     * 
     * @param circleQuestionPushRecord 圈子题目推送记录
     * @return 结果
     */
    @Override
    public int updateCircleQuestionPushRecord(CircleQuestionPushRecord circleQuestionPushRecord)
    {
        return circleQuestionPushRecordMapper.updateCircleQuestionPushRecord(circleQuestionPushRecord);
    }

    /**
     * 批量删除圈子题目推送记录
     * 
     * @param ids 需要删除的圈子题目推送记录主键
     * @return 结果
     */
    @Override
    public int deleteCircleQuestionPushRecordByIds(Long[] ids)
    {
        return circleQuestionPushRecordMapper.deleteCircleQuestionPushRecordByIds(ids);
    }

    /**
     * 删除圈子题目推送记录信息
     * 
     * @param id 圈子题目推送记录主键
     * @return 结果
     */
    @Override
    public int deleteCircleQuestionPushRecordById(Long id)
    {
        return circleQuestionPushRecordMapper.deleteCircleQuestionPushRecordById(id);
    }
}
